<p class="member-panel">
    <?php if (isset($member['user_name'])) {
        echo __('welcome', true), ", ", $member['user_name'], '&nbsp;&nbsp;', $this->Html->link(__('Logout', true), array('controller'=>'users', 'action'=>'logout'));
    } else {
        echo $this->Html->link(__('Login', true), array('controller'=>'users', 'action'=>'login'));
    } ?>

</p>